import React from 'react'
import {Col, Row} from "antd";

import {WeaLocaleProvider,WeaInput} from "ecCom";
const getLabel = WeaLocaleProvider.getLabel;

export default class AddExtends extends React.Component{
    render(){
        const {setting,setSetting} = this.props
        const {url='',moreUrl=''} = setting

        return (
            <div>
                <div style={{'margin-top':'10px'}}>
                    <Row ecId={`${this && this.props && this.props.ecId || ''}_Row@0chspa`}>
                        <Col ecId={`${this && this.props && this.props.ecId || ''}_Col@92baed`} span={6} >
                            <div>{getLabel(20017, '引用地址')} :</div>
                        </Col>
                        <Col ecId={`${this && this.props && this.props.ecId || ''}_Col@qojhcq`} span={18}>
                            <WeaInput ecId={`${this && this.props && this.props.ecId || ''}_WeaInput@12ayaf`} value={url} viewAttr={2} onChange={value => setSetting({url: value})}/>
                        </Col>
                    </Row>
                </div>
                <div style={{'margin-top':'10px'}}>
                    <Row ecId={`${this && this.props && this.props.ecId || ''}_Row@jk7rx8`}>
                        <Col ecId={`${this && this.props && this.props.ecId || ''}_Col@lrqnfl`} span={6} >
                            <div>{getLabel(386563, 'More地址')} :</div>
                        </Col>
                        <Col ecId={`${this && this.props && this.props.ecId || ''}_Col@ab7kjx`} span={18}>
                            <WeaInput ecId={`${this && this.props && this.props.ecId || ''}_WeaInput@jga2qk`} value={moreUrl} viewAttr={2} onChange={value => setSetting({moreUrl: value})}/>
                        </Col>
                    </Row>
                </div>
            </div>
        )
    }
}